package app.beit.finportal.service.convert;


import app.beit.finportal.bean.MSConfigBean;
import app.beit.finportal.entity.MSConfig;

public class MSConfigConvert {

	
	public static MSConfigBean entityToBean(final MSConfig entity) throws Exception {
		final MSConfigBean bean = new MSConfigBean();
		
		bean.setId(entity.getId());
		bean.setName(entity.getName());
		bean.setValue(entity.getValue());
		bean.setDescription(entity.getDescription());
		
		return bean;
	}
	
	
	public static MSConfig beanToEntity(final MSConfigBean bean){
		final MSConfig entity = new MSConfig();

		entity.setId(bean.getId());
		entity.setName(bean.getName());
		entity.setValue(bean.getValue());
		entity.setDescription(bean.getDescription());
		
		return entity;
	}


}
